package com.kangzhan.dao;

import com.kangzhan.entiy.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserMapper {
    /**
     * 查询用户表记录数
     *
     * @return
     */
    public int count(@Param("userName") String userName, @Param("sex") Integer sex);

    public int add(User user);

    public User login(@Param("username") String username, @Param("password") String password);

    public List<Map> getUserList(@Param("userName") String userName, @Param("sex") Integer sex
    ,@Param("dbIndex") Integer dbIndex, @Param("pageSize") Integer pageSize);
}
